---
title: pin
---

import VersionLabel from '@site/src/components/Docs/VersionLabel';

<VersionLabel version="0.19.0" header />

The `proto pin <tool> <version>` command will pin a version (or alias) of a tool. This version will
be used when attempting to [detect a version](../detection).

```shell
$ proto pin go 1.20
```

By default this will update the local [`./.prototools`](../config) file. Pass `--to` to customize
the location.

### Arguments

- `<tool>` - Type of tool.
- `<version>` - Version of tool.

### Options

- `--resolve` - Resolve the version to a fully-qualified semantic version before pinning.
- `--to` - [Location of `.prototools`](../config#locations) to update. Supports `global`, `local`,
  and `user`.
  <VersionLabel version="0.41.0" />
